package org.meetunexpectedly.service.login;

import org.meetunexpectedly.entity.vo.Captcha;

import java.awt.image.BufferedImage;

/**
 * @Description: 图形验证码服务接口
 * @Author: pupil
 * @Date: 2024/08/04 下午 8:25
 */
public interface CaptchaService{
    /**
     * 获取图形验证码
     * @param uuId
     */
    BufferedImage getCaptcha(String uuId);

    /**
     * 判断图形验证码并发送邮箱验证码
     * @param captcha
     * @return
     */
    Boolean validate(Captcha captcha) throws Exception;

}
